/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.NamedQueries;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;


/**
 *
 * @author ari
 */
@Entity
@Table(name = "ESTADISTICA")
@XmlRootElement
public class Estadistica implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @NotNull
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "ID")
    private Long id;

    @Column(name = "TRANSACCIONES")
    private int transacciones;
    
    @Column(name = "VENTAD")
    private double ventad;
    
    @Column(name = "VENTAA")
    private int ventaa;    
    
    @Column(name = "COMPRAD")
    private double comprad;   

    @Column(name = "COMPRAA")
    private int compraa;

    @Size(max = 255)
    @Column(name = "FECHA")
    private String fecha;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getCompraa() {
        return compraa;
    }

    public void setCompraa(int compraa) {
        this.compraa = compraa;
    }

    public double getComprad() {
        return comprad;
    }

    public void setComprad(double comprad) {
        this.comprad = comprad;
    }

    public String getFecha() {
        return fecha;
    }

    public void setFecha(String fecha) {
        this.fecha = fecha;
    }

    public int getTransacciones() {
        return transacciones;
    }

    public void setTransacciones(int transacciones) {
        this.transacciones = transacciones;
    }

    public int getVentaa() {
        return ventaa;
    }

    public void setVentaa(int ventaa) {
        this.ventaa = ventaa;
    }

    public double getVentad() {
        return ventad;
    }

    public void setVentad(double ventad) {
        this.ventad = ventad;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Estadistica)) {
            return false;
        }
        Estadistica other = (Estadistica) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.Estadistica[ id=" + id + " ]";
    }
    
}
